﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Sprout.Cache.Redis
{
    public class RedisKeyOption
    {
        /// <summary>
        /// Redis连接名称
        /// </summary>
        public string ConnectionName { get; set; }
        /// <summary>
        /// Key 过期时间
        /// </summary>
        public IList<RedisKeyExpiry> RedisKeyExpirys { get; set; }
    }


    public class RedisKeyExpiry
    {
        /// <summary>
        /// Redis连接名称
        /// </summary>
        public string ConnectionName { get; set; }

        /// <summary>
        /// Key
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// 过期时间类型
        /// </summary>
        public string ExpiryType { get; set; }
        /// <summary>
        /// 过期时间间隔
        /// </summary>
        public int Interval { get; set; }

    }


}
